import http from '@/utils/request'



export async function getDepartmentTree() {
  return await http.post("/api/getDepartmentTree")
}

export async function getDepartmentXlk() {
  return await http.post("/api/getDepartmentXlk")
}

export async function getDepartments(params) {
  return await http.post("/api/getDepartments", params)
}

export async function addDepartment(params) {
  return await http.post("/api/addDepartment", params)
}

export async function editDepartment(params) {
  return await http.post("/api/editDepartment", params)
}

export async function deleteDepartment(params) {
  return await http.post("/api/deleteDepartment", params)
}
